public class M1 {
    public static void main(String[] args) {

    }
    
    private String mother; // 母亲
    private String father; // 父亲
    private int birthyear; // 出生年份
    
    // 构造函数
    public M1(String mother, String father, int birthyear) {
        this.mother = mother;
        this.father = father;
        this.birthyear = birthyear;
    }
    // 获取当前年纪
    public int getCurrentAge() {
        int currentYear = 2024; // 当前年份为2024
        return currentYear - birthyear+1;
    }
    // 获取父亲的名字
    public String getFather() {
        return father;
    }
    // 获取母亲的名字
    public String getMother() {
        return mother;
    }
}